<script>
var dopoll='__URL__/dopoll';
</script>
<!--table部分-->
<div class='col-md-12' style='padding-top:10px'>

    <div class="panel panel-default">
      <div class="panel-heading">轮询后台保持数据更新</div>
      <div class="panel-body">
        <div class="progress">
          <div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 100%">
            <span class="sr-only">45% Complete</span>
          </div>
        </div>
      </div>
    </div>


</div>

<script type="text/javascript">
var int=self.setInterval("poll()",20000);

function poll(){

  $.ajax({
      'type': 'GET',
      'url':dopoll,
      'async':false,  
      'contentType': 'application/json',
      'data': {},
      'dataType': 'json',
      'success': function(data) {
          console.log("success");
      },
      'error':function() {
          console.log("error");
      }
  });
}
</script>




